package com.rong.maven01demo.service.impl;

import com.rong.maven01demo.dao.UserDO;
import com.rong.maven01demo.dao.UserDOMapper;
import com.rong.maven01demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Iterator;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {

//    @Autowired
//    private UserDOMapper userDOMapper;

    @Override
    public List<UserDO> getUsers() {
        List<UserDO> list = null;
//        list = userDOMapper.getUsers();
//        Iterator<UserDO> iterator = list.iterator();
//        while (iterator.hasNext()){
//            UserDO u = iterator.next();
//            String s = u.getId();
//            if (s.equals("")){
//                iterator.remove();
//            }
//        }

        return list;
    }

    @Override
    public void addUser(String user) {

    }

    @Override
    public void updateUser(String user) {

    }

    @Override
    public void deleteUser(String user) {

    }
}
